package com.ruoyi.tb.lmt.mapper;

import com.ruoyi.tb.lmt.domain.TbParking;
import com.ruoyi.tb.lmt.domain.bo.TbParkingBo;
import com.ruoyi.tb.lmt.domain.vo.CarNumberVo;
import com.ruoyi.tb.lmt.domain.vo.TbParkingVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

/**
 * 存车场信息Mapper接口
 *
 * @author ruoyi
 * @date 2024-01-23
 */
@Mapper
public interface TbParkingMapper extends BaseMapperPlus<TbParkingMapper, TbParking, TbParkingVo> {

    List<TbParkingVo> selectParkingList(String fromIp);

    List<TbParkingVo> selectParkingByTrackName(String trackName);

    Integer selectCarNumber();

    int countByKey(@Param("day") LocalDate day);

    List<TbParkingVo> selectParkingListByTrackIdAndDrivewayNames(@Param("drivewayNames") List<String> drivewayNames, @Param("trackId") String trackId);

    TbParkingVo selectByLmtNumber(@Param("lmtNumber") String lmtNumber);

    List<String> selectJ3(@Param("trackId") Long trackId);
}
